home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / WebObjects / WebObjectsDoc_HTML / Reuse / ReusableComponentsEx / FileEditor.wo / FileEditor.wod < prev    next >
Encoding:
Text File  |  1996-03-02  |  848 b   |  46 lines

  1. ////////////////////////
  2. //  FileEditor
  3. //  by Charles Lloyd
  4. ////////////////////////
  5.  
  6.  
  7. FileEditorTable: WOGenericComponent {
  8.     elementName = "table";
  9.     border = borderSize;
  10. };
  11.  
  12. PathNameString: FontString {
  13.     value = abbreviatedPathName;
  14.     fontSize = 4;
  15. };
  16.  
  17. ErrorStringConditional: WOConditional {
  18.     condition = fileNotWritten;
  19. };
  20.  
  21. ErrorString: FontString {
  22.     value = "Error: File not written.";
  23.     fontColor = "#ff0000";
  24.     fontSize = 4;
  25. };
  26.  
  27. FileEditorArea: WOText {
  28.     value = fileContentsString;
  29.     rows = rows;
  30.     cols = cols;
  31. };
  32.  
  33. RevertButton: MultipleSubmitButton {
  34.     parentAction = revertFile;
  35.     buttonImage = "../FileEditor.wo/RevertButton.gif";
  36. };
  37.  
  38. SaveButton: MultipleSubmitButton {
  39.     parentAction = saveFile;
  40.     buttonImage = "../FileEditor.wo/SaveButton.gif";
  41. };
  42.  
  43. Comment: WOConditional {
  44.     condition = NO;
  45. };
  46.